package server;
import java.rmi.*;

public interface CompanyInterface extends Remote{
	public int getStaffID(int id)throws RemoteException;	
	public double getFounds(int id)throws RemoteException;	
	public int getMaxStaff(int id)throws RemoteException;	
	public int getStaffNum(int id)throws RemoteException;
	public double getMaxLoanVal(int id)throws RemoteException;
	public double getLoanVal(int id)throws RemoteException;
	public boolean setFounds(int id,double founds)throws RemoteException;
	public boolean setMaxStaff(int id,int maxStaff)throws RemoteException;
	public boolean setStaffNum(int id,int staffNum)throws RemoteException;	
	public boolean setMaxLoanAmount(int id,double maxLoanAmount)throws RemoteException;
	public boolean setLoanVal(int id,double loanVal)throws RemoteException;
	public boolean isNotStaffFull(int id)throws RemoteException;
	public boolean loan(int id,double loanVal)throws RemoteException;
	public boolean reloan(int id,double reloanVal)throws RemoteException;
	/*public boolean recruit(int id,Staff staffinfo,Person per)throws RemoteException;
	public boolean resign(int id,Person per)throws RemoteException;*/
	public void profit(int id,double pro)throws RemoteException;
	public boolean paySalary(int id,int staffID,double salary)throws RemoteException;
	//public boolean workSettle(int id,Staff staffinfo,Staff staffinfo1,Person per)throws RemoteException;
	public int getSize() throws RemoteException;
}
